Setting up a basic http proxy?

Setting up a basic http proxy?

am 04.01.2010 01:17:02 von DJ AM_Juicebox

--0016e64603eaf8dcd3047c4ba31e
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I'm looking to run apache as a proxy for web development. I'm running mac ox
10.5.4, which already has apache 2.2.8 installed and running.

I'd like to point my javascript files (which are running locally on my
machine) to:

http://localhost/test.php

which would hit the local apache server, then have that apache instance
forward to my real remote server:

http://www.mysite.com/test.php

I've looked at a few walkthroughs but they seem to be out of date. I'm
wondering if there's a recent how-to on setting this up - the doc here:

http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

gives a basic example, but I'm not sure where that text should be added - to
http.conf? Do I simply add it there, then restart the server?

Thanks

--0016e64603eaf8dcd3047c4ba31e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

I'm looking to run apache as a proxy for web development. I&=
#39;m running mac ox 10.5.4, which already has apache 2.2.8 installed and r=
unning.

I'd like to point my javascript files (which are running=
locally on my machine) to:

=A0
=A0 http://localhost/test.php=


which would hit the local apache server, then have that apache =
instance forward to my real remote server:

=A0 ..mysite.com/test.php">http://www.mysite.com/test.php


I've looked at a few walkthroughs but they seem to be out of date. =
I'm wondering if there's a recent how-to on setting this up - the d=
oc here:

=A0 xy.html">http://httpd.apache.org/docs/2.0/mod/mod_proxy.html


gives a basic example, but I'm not sure where that text should be a=
dded - to http.conf? Do I simply add it there, then restart the server?
=

Thanks


--0016e64603eaf8dcd3047c4ba31e--

Re: Setting up a basic http proxy?

am 04.01.2010 09:58:41 von Devraj Mukherjee

You are looking at the right documentation, you need to add rules that
are custom to your situation.

For example if your web server serving the JS is running on port 8080
a rule would look like

ProxyPass /js http://localhost:8080/

On Mon, Jan 4, 2010 at 11:17 AM, DJ AM_Juicebox
wrote:
> Hi,
>
> I'm looking to run apache as a proxy for web development. I'm running mac=
ox
> 10.5.4, which already has apache 2.2.8 installed and running.
>
> I'd like to point my javascript files (which are running locally on my
> machine) to:
>
> =A0 http://localhost/test.php
>
> which would hit the local apache server, then have that apache instance
> forward to my real remote server:
>
> =A0 http://www.mysite.com/test.php
>
> I've looked at a few walkthroughs but they seem to be out of date. I'm
> wondering if there's a recent how-to on setting this up - the doc here:
>
> =A0 http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
>
> gives a basic example, but I'm not sure where that text should be added -=
to
> http.conf? Do I simply add it there, then restart the server?
>
> Thanks
>



--=20
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org